<template>
	<view class="body p20">
		<public-module></public-module>
		<wlk-navbar isFillHeight title="方案详情" :navbarType='3'></wlk-navbar>
		<from-item disabled v-for="(item,index) in list" :type="item.type" :key="index" :title="item.name"
			v-model="item.value" :required='0' :list="item.child"></from-item>
	</view>
</template>

<script>
	import { toUrl } from '@/wlkutils/tools';
	export default {
		data() {
			return {
				list: [],
				createtime: ""
			}
		},
		methods: {
			setName(e) {
				this.Iindex = e
			},
			jump(url) {
				toUrl(url)
			},
			async getDetail() {
				const res = await uni.$u.http.post("from/getDetail", { createtime: this.createtime });
				res.data.map(item => (item.type == 7 || item.type == 6 )? item.value = item.value.map(e=>{return {url:e}}):null)
				this.list = res.data
			}
		},
		onLoad(options) {
			this.createtime = options.createtime
			this.getDetail()
		},
	}
</script>

<style scoped lang="scss">
</style>